diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-11-20 21:21:15 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-11-20 21:21:15 +0000 |
| commit | 7af4bdee8f016e544a6fda75c04c7725333e7a2a (patch) | |
| tree | ae3e7f9223697395be430c8e67f89790ec26f866 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 1947263a598890083864a925405d4d5b54f48f29 (diff) | |
Add instructions after defining function but before defining vars
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 2 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index b405a2b5..8595a76f 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -43,6 +43,7 @@ Instructions: value=(function-ptr "shed__function__f__0") ) (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0")) + (local-store (local "a") (int 42)) ( memory-store pointer=(local "closurePointer__f__0") @@ -50,6 +51,7 @@ Instructions: offset=(1 0) value=(local "local__a") ) + (local-store (local "b") (int 47)) ( memory-store pointer=(local "closurePointer__f__0") |
